<template>
	<view class="page">
		<view class="smallpage">
			<view class="shurukuang">
				<input type="text" v-model="nickname" @click="qingkong()">
			<view class="tupian">
				<image src="/static/img//cha.png" mode="" v-if="this.nickname!=''"></image>
			</view>
			</view>
			<text class="tishi">英文字母或汉字，限4-16个字符，一个汉字为2个字符</text>
			<button>保存</button>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				nickname:"辣妈11111",
			}
		},
		methods: {
			qingkong() {
				this.nickname="";
			}
			
		}
	}
</script>

<style>
	.page {
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
	}
	.smallpage{
		width: 94%;
		display: flex;
		flex-direction: column;
		margin: 3% 3% 0 3%; 
	}
	.shurukuang{
		display: flex;
		border-bottom: 2px solid #8f94cd;
	}
	.shurukuang input{
		width: 90%;
		display: inline-block;
		height: 50px;
		line-height: 50px;
	
	}
	.tupian{
		display: inline-block;
		height: 50px;
		display: flex;
	}
	.tupian image{
		width: 20px;
		height: 20px;
		margin: auto;
	}
	.tishi{
		margin-top: 13px;
		color: #a0a0a0;
	}
	button{
		margin-top: 30px;
		width: 90%;
		background: #868bc0;
		color: white;
		border-radius: 50px;
	}
	
</style>
